Skip to content

Conversation

@RikuMinamiyama
Copy link
Contributor

Overview
This PR fixes Haddock documentation issues in the fromAscListWithKey function documentation.

Correction details

  • Fix missing backticks in 'fromAscListWithKey' reference in fromListWithKey documentation
  • Improve English phrasing: "on equal keys" → "for equal keys"
  • Clarify that the combining function receives the key: "with a combining function that receives the key for equal keys"
  • Enhance examples with more comprehensive test cases including empty list
  • Apply consistent changes to both Strict and Lazy versions

Modified files

  • containers/src/Data/IntMap/Internal.hs
  • containers/src/Data/IntMap/Strict/Internal.hs

Test

  • Documentation builds without errors
  • Changes are consistent between Strict and Lazy versions
  • Examples are syntactically correct

This is my first OSS contribution and I'm not a native English speaker. Please let me know if there are any issues with the documentation changes.

Fixes #1154

Copy link
Contributor

@meooow25 meooow25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, apologies for missing this PR. Your changes to the examples seem good, and the backtick fix for 'fromAscListWithKey' is also an improvement.

However, I would prefer if you drop the other language changes. Those seem clear to me and don't need adjustment.

@RikuMinamiyama
Copy link
Contributor Author

RikuMinamiyama commented Dec 27, 2025

@meooow25

Thank you for the review! I've addressed your feedback and reverted the language changes as requested.

The PR now only includes:

  • The improved examples for fromAscListWithKey
  • The backtick fix for the 'fromAscListWithKey' reference

All other language changes have been removed. Please let me know if you'd like any further adjustments.

Copy link
Contributor

@meooow25 meooow25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@meooow25 meooow25 merged commit 7cd38d1 into haskell:master Dec 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect example for IntMap.Strict.fromAscListWithKey

2 participants